﻿namespace BulkListActions
{
    using Microsoft.SharePoint.WebControls;
    using System;
    using System.Web.UI;

    public class AdditionalPageHeadControl : UserControl
    {
        protected override void Render(HtmlTextWriter writer)
        {
            if (this.RenderOnLayoutsPage || !(this.Page is LayoutsPageBase))
            {
                base.Render(writer);
            }
        }

        protected virtual bool RenderOnLayoutsPage
        {
            get
            {
                return true;
            }
        }
    }
}
